<table  class="table table-bordered" >
	<tr>
		<td class="active" width="20%">
			指标名称：
		</td>
		<td colspan="3" >
			<span ng-bind="indicatorsInfoService.indicatorsInfo.kpiName">
			</span>
		</td>
	</tr>
	<tr>
		<td class="active">
			指标编号：
		</td>
		<td colspan="3" >
			<span ng-bind="indicatorsInfoService.indicatorsInfo.kpiCode">
			</span>
		</td>
	</tr>
	<tr>
		<td class="active">
			指标定义：
		</td>
		<td colspan="3" >
			<span ng-bind="indicatorsInfoService.indicatorsInfo.kpiDesc">
			</span>
		</td>
	</tr>
	<tr>
		<td class="active">
			指标统计方法：
		</td>
		<td colspan="3" >
			<span ng-bind="indicatorsInfoService.indicatorsInfo.idFormular">
			</span>
		</td>
	</tr>
	<tr>
		<td class="active">
			指标类别：
		</td>
		<td colspan="3" >
			<div class="form-group col-xs-3" ng-repeat="data in communityService.kpiTypeDatas"  >
				<input class="type-checkbox" type="checkbox" ng-model="data.checked" > 
				<span class="type-checkbox-span" ng-bind="data.name">
				</span>
			</div>
		</td>
	</tr>
	<tr>
		<td class="active">
			业务场景：
		</td>
		<td colspan="3" >
			<div class="form-group col-xs-3 " ng-repeat="data in communityService.visitTypeDatas"  >
				<input class="type-radio" type="radio" name="visitType" ng-model="indicatorsInfoService.indicatorsInfo.visitType" value="{{data.code}}" > 
				<span class="type-radio-span" ng-bind="data.name">
				</span>
			</div>
		</td>
	</tr>
	<tr>
		<td class="active">
			适用机构：
		</td>
		<td colspan="3" >
			<div class="form-group col-xs-3 " ng-repeat="data in communityService.fitOrg"  >
				<input class="type-checkbox" type="checkbox" ng-model="data.checked"> 
				<span class="type-checkbox-span" ng-bind="data.name">
				</span>
			</div>
		</td>
	</tr>
	<tr>
		<td class="active">
			优先展示维度：
		</td>
		<td colspan="3" >
			<div class="form-group col-xs-3 " ng-repeat="data in communityService.showTypeDatas"  >
				<input class="type-radio" type="radio" name="indicatorsDimension" ng-model="indicatorsInfoService.indicatorsInfo.showType" value="{{data.code}}" > 
				<span class="type-radio-span" ng-bind="data.name">
				</span>
			</div>
		</td>
	</tr>
	<tr>
		<td class="active">
			指标状态：
		</td>
		<td colspan="3" >
			<div class="form-group col-xs-3 "  >
				<input class="type-radio" type="radio" ng-model="indicatorsInfoService.indicatorsInfo.isValid" value="0"> 
				<span class="type-radio-span">
					启用
				</span>
			</div>
			<div class="form-group col-xs-3 "  >
				<input class="type-radio" type="radio" ng-model="indicatorsInfoService.indicatorsInfo.isValid" value="1"> 
				<span class="type-radio-span">
					不启用
				</span>
			</div>
		</td>
	</tr>
	<tr ng-repeat="data in indicatorsInfoService.indicatorsInfo.valueDatas"  >
		<td class="active" width="20%" style="vertical-align: middle;" ng-show="$index<1" rowspan="{{indicatorsInfoService.indicatorsInfo.valueDatas.length}}" >
			指标参数：
		</td>
		<td width="30%"  >
			<span ng-bind="data.valueDesc">
			</span>
			<span ng-bind="data.value">
			</span>
			<span ng-bind="data.unit">
			</span>
		</td>
		<td class="active" width="20%" >阈值：</td>
		<td  width="30%" class="cursor-pointer">
			<div> 
		   		<span ng-bind="data.value"></span> 
		   		<span ng-bind="data.unit"></span>  
		   		<span class="glyphicon glyphicon-pencil" style="color:#b83c11" ng-click="updateIndicatorsInfoValue(data);"></span>
			</div>
		</td>
	</tr>
	<tr ng-repeat="data in indicatorsInfoService.indicatorsInfo.warnValueDatas"  >
		<td class="active" width="20%" style="vertical-align: middle;" ng-show="$index<1" rowspan="{{indicatorsInfoService.indicatorsInfo.warnValueDatas.length}}" >
			预警规则：
		</td>
		<td width="30%"  >
			<span ng-bind="data.reasonName">
			</span>
		</td>
		<td class="active" width="20%" >阈值：</td>
		<td  width="30%" class="cursor-pointer">
			<div> 
		   		<span ng-bind="data.warnValue"></span> 
		   		<span ng-bind="data.warnUnit"></span> 
		   		<span class="glyphicon glyphicon-pencil" style="color:#b83c11" ng-click="updateIndicatorsWarnValue(data);"></span>
			</div>
		</td>
	</tr>
</table>
<div class="col-xs-12">
	<button type="button"  class="btn btn-blue btn-sm" ng-click="saveIndicatorsInfo();" >
		保存
	</button>
	<button type="button"  class="btn btn-blue btn-sm" ng-click="resetIndicatorsInfo();">
		重置
	</button>
</div>
<script type="text/ng-template" id="indicatorsValue_view.html">
		<div class="modal-header">
			<button type="button" class="close" ng-click="cancel()">&times;</button>
			<h4 class="modal-title"><span> 阈值设置</span></h4>
		</div>
		<div class="modal-body">
			<div class="row">
				<div class="form-group  col-xs-12">
				   	<label class="col-xs-3 control-label text-right">阈值:</label>
				   	<div class="col-xs-8">
				    	<input class="form-control"  ng-model="form.value" required>
				  	</div>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-primary btn-sm" ng-click="ok()">
				提交
			</button>
			<button type="button" class="btn btn-default btn-sm" ng-click="cancel()">
				取消
			</button>
		</div>		
</script>

<script type="text/ng-template" id="indicatorsWarnValue_view.html">
		<div class="modal-header">
			<button type="button" class="close" ng-click="cancel()">&times;</button>
			<h4 class="modal-title"><span> 阈值设置</span></h4>
		</div>
		<div class="modal-body">
			<div class="row">
				<div class="form-group  col-xs-12">
				   	<label class="col-xs-3 control-label text-right">阈值:</label>
				   	<div class="col-xs-8">
				    	<input class="form-control"  ng-model="form.value" required>
				  	</div>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-primary btn-sm" ng-click="ok()">
				提交
			</button>
			<button type="button" class="btn btn-default btn-sm" ng-click="cancel()">
				取消
			</button>
		</div>		
</script>
